package com.klz.iblog.dao;

import com.klz.iblog.pojo.Comments;

import java.util.List;

public interface CommentsMapper {

    /**
     * 查询所有博客的评论量
     * @return
     */
    Integer selectAllCommentsCounts();

    /**
     * 查询该评论的所有回复
     * @param commentsId
     * @return
     */
    List<Comments> selectCommentsAllReplys(Integer commentsId);

    /**
     * 查询该评论的所有回复总数
     * @param commentsId
     * @return
     */
    Integer selectCommentsAllReplysCount(Integer commentsId);


    int deleteByPrimaryKey(Integer commentsId);

    int insert(Comments record);

    int insertSelective(Comments record);

    Comments selectByPrimaryKey(Integer commentsId);

    int updateByPrimaryKeySelective(Comments record);

    int updateByPrimaryKey(Comments record);
}